package com.zdsoft.finance.demo.entity;

import com.zdsoft.framework.core.common.domain.BaseEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by Administrator on 2016/9/14.
 */
@Entity
@Table(name = "demo_client")
public class DClient extends BaseEntity {
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
     * 名称
     */
    @Column(length = 50)
    private String name;
    /**
     * 地址
     */
    @Column(length = 200)
    private String address;
    /**
     * 唯一标识
     */
    @Column(length = 50)
    private String idCard;
    /**
     * 年龄
     */
    @Column
    private Integer age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "DClient{" +
                "name='" + name + '\'' +
                ", address='" + address + '\'' +
                ", idCard='" + idCard + '\'' +
                ", age=" + age +
                '}';
    }
}
